<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>WBC - 图书管理系统</title>

    <!-- Bootstrap -->
    <link href="bs/css/bootstrap.min.css" rel="stylesheet">
    <link href="bs/css/bootstrap-datetimepicker.min.css" rel="stylesheet">
    <link rel="stylesheet" href="lib/css/library.css">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <!-- 导航条 -->
    <nav class="navbar navbar-default">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">WBC图书管理系统v1.0</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">图书管理</a></li>
            <li><a href="#">借书/还书</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li role="separator" class="divider"></li>
                <li><a href="#">Separated link</a></li>
                <li role="separator" class="divider"></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
            </li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#">Link</a></li>
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li role="separator" class="divider"></li>
                <li><a href="#">Separated link</a></li>
              </ul>
            </li>
          </ul>
        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>
    <!-- 导航条 -->

    <div class="container">
      
      <div class="row mb-10">
        <div class="col-lg-8">
          <div class="btn-group">
            <button id="newBookBtn" type="button" class="btn btn-default">新增图书</button>
            <button type="button" class="btn btn-primary">图书列表</button>
            <button id="updateBookBtn" type="button" class="btn btn-warning" disabled>修改图书</button>
            <button id="delBookBtn" type="button" class="btn btn-danger" disabled>删除图书</button>
          </div>
        </div><!-- /.col-lg-6 -->
        <div class="col-lg-4">
          <div class="input-group">
            <input id="searchIpt" type="text" class="form-control" placeholder="请输入书名">
            <span class="input-group-btn">
              <button id="searchBtn" class="btn btn-danger" type="button">搜索</button>
            </span>
          </div><!-- /input-group -->
        </div><!-- /.col-lg-6 -->
      </div><!-- /.row -->

      <table id="booksTable" class="table table-striped table-bordered table-hover mb-0">
        <thead>
          <tr>
            <th class="w-30"><input id="chkAll" type="checkbox"></th>
            <th>书名</th>
            <th>作者</th>
            <th>出版社</th>
            <th>定价</th>
            <th>出版日期</th>
            <th>类别</th>
            <th>上架/下架</th>
            <th>借出状态</th>
          </tr>
        </thead>

        <tbody></tbody>
        <!-- <tr>
          <td>item1</td>
          <td>item2</td>
          <td>item3</td>
          <td>item4</td>
          <td>item5</td>
          <td>item6</td>
          <td>item7</td>
          <td>item8</td>
        </tr> -->
      </table>

      <nav>
        <div class="page-jumper">
          <input id="jumpIpt" type="text" value="1">
          <button id="jumpBtn">GO</button>
        </div>

        <ul id="pagingUl" class="pagination mt-10 pull-right">
          <!-- <li>
            <a href="#" aria-label="Previous">
              <span aria-hidden="true">&laquo;</span>
            </a>
          </li> -->
          <!-- <li><a href="#">1</a></li>
          <li><a href="#">2</a></li>
          <li><a href="#">3</a></li>
          <li><a href="#">4</a></li>
          <li><a href="#">5</a></li> -->
          <!-- <li>
            <a href="#" aria-label="Next">
              <span aria-hidden="true">&raquo;</span>
            </a>
          </li> -->
        </ul>
      </nav>

    </div>

    <!-- 对话框 -->
    <div class="modal fade" id="bookDlg" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
      <div class="modal-dialog" role="document">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title" id="myModalLabel">新增图书</h4>
          </div>
          <div class="modal-body">
            <!-- 表单 -->
            <form id="booksForm" class="form-horizontal">
              <input type="hidden" id="bookId">
              <div class="form-group">
                <label class="col-sm-2 control-label pl-0">书名：</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="name" placeholder="请输入书名">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label pl-0">作者：</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="author" placeholder="请输入作者">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label pl-0">分类：</label>
                <div class="col-sm-10">
                  <select id="classify" class="form-control">
                    <option value="0">请选择</option>
                  </select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label pl-0">出版日期：</label>
                <div class="col-sm-10">
                  <input type="text" class="form-control" id="p_date" placeholder="请输入出版日期">
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label pl-0">上架状态：</label>
                <div class="col-sm-10">
                  <label class="radio-inline">
                    <input type="radio" name="status" value="1" checked> 上架
                  </label>
                  <label class="radio-inline">
                    <input type="radio" name="status" value="0"> 下架
                  </label>
                </div>
              </div>
              <div class="form-group">
                <label class="col-sm-2 control-label pl-0">借出状态：</label>
                <div class="col-sm-10">
                  <label class="radio-inline">
                    <input type="radio" name="b_status" value="0" checked> 未借出
                  </label>
                  <label class="radio-inline">
                    <input type="radio" name="b_status" value="1"> 已借出
                  </label>
                </div>
              </div>

            <!-- <input type="reset" value="清空"> -->

            </form>
            <!-- 表单 -->
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
            <button id="saveBtn" type="button" class="btn btn-primary w-110">保存并入库</button>
          </div>
        </div>
      </div>
    </div>
    <!-- 对话框 -->

    <!-- loading -->
    <div class="masker-wp">
      <div class="masker"></div>
      <div class="loading">
      	努力加载中...
      </div>
    </div>
    <!-- loading -->

    <script src="bs/underscore-min.js"></script>
    <script src="bs/jquery-1.11.3.min.js"></script>
    <script src="bs/js/bootstrap.min.js"></script>
    <script src="bs/js/bootstrap-datetimepicker.min.js"></script>
    <script src="bs/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="layer/layer.js"></script>
    <script src="../lib/jquery.wbc.js"></script>
    <script src="lib/js/library2.js"></script>
  </body>
</html>